﻿using System;
using SilverNotes.Common;

namespace SilverNotes
{
  /// <summary>
  /// Presents filter group of print templates.
  /// </summary>
  public class FilterItem
  {
    private readonly string _name;
    private readonly Predicate<IViewDescriptor> _filter;

    public string Name
    {
      get { return _name; }
    }

    public Predicate<IViewDescriptor> Filter
    {
      get { return _filter; }
    }

    public FilterItem(string name, Predicate<IViewDescriptor> filter)
    {
      _name = name;
      _filter = filter;
    }
  }
}